package com.tbit.maintain.api;

import com.tbit.common.entity.view.Result;
import com.tbit.maintain.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 车辆api
 *
 */
@FeignClient(name = ApiConstants.NAME)
public interface MachineApi {

    String PREFIX = ApiConstants.PREFIX + "/machine";

    @PostMapping(value = PREFIX + "/clearMachineStatus",produces = "application/json", consumes = "application/json")
    Result<Object> clearMachineStatus(@RequestBody List<Integer> machineIdList);
}
